var a = 100;
function foo() {
  console.log(a);
  return;
  var a = 100;
}
foo();